GetContextFromToken
TheGetContextFromToken
method gets references to the part and the frame in whose context the specified token was created.
void GetContextFromToken(in ODOSLToken token, out ODPart part, out ODFrame frame);
- token
- A reference to the token to be examined.
- part
- A reference to the part representing the context for this token.
- frame
- A reference to the frame representing the context for this token, or
kODNULL
if the specified part does not have any frames associated with it.DISCUSSION
Thetoken
parameter must be a valid OpenDoc token; you can call theIsODToken
method to check whether a token is valid.This method does not increment the reference count of either the part or the frame in whose context the token was created.
SEE ALSO
TheODNameResolver::CreateSwapToken
method (page 422).
TheODNameResolver::IsODToken
method (page 425).
"Returning Tokens" on page 428 in OpenDoc Programmer's Guide.
"Other Considerations" on page 430 in OpenDoc Programmer's Guide.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help